package com.gf.gf_data.dao;

import com.gf.gf_data.entity.Account;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * Created by Eternal_L on 2018/1/9.
 */
public interface AccountDao {

    Integer insert(@Param("account") Account account);

    Account selectByPhoneAndAreaCode(@Param("phone") String phone, @Param("areaCode") String areaCode);

    Set<String> selectRoles(@Param("token") String token);

    Set<String> selectPermissions(@Param("token") String token);

}
